import { getData, postData, putData } from '@/servers/http'

// 生成彩虹图
export const batchInput = (id: string, data?: any) => postData(`/user-barriers/batch-input/${id}`, data)

// 编辑彩虹图
export const batchUpdata = (id: string, data?: any) => putData(`/user-barriers/batch-update/${id}`, data)

// 获取关卡数据
export const getBarriers = (id: string) => getData<any, any>(`/user-barriers/${id}`)
